﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="CourseSystem.Core.BLL" %>
<table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <% using (Ajax.BeginForm(ViewData["listName"].ToString(), new AjaxOptions { HttpMethod = "Get", UpdateTargetId = "listDiv", }))
           {%>
        <tr class="box06">
            <td width="10%" height="27" align="center">
                <div align="right">
                    院校 :
                </div>
            </td>
            <td width="13%" align="center" class="bg3">
                <div align="left">
                    <select name="CollegeIdSearch" id="CollegeIdSearch">
                        <option value="0">请选择</option>
                    </select>
                </div>
            </td>
            <td width="11%" align="center">
                <div align="right">
                    系别 :</div>
            </td>
            <td width="16%" align="center" class="bg3">
                <div align="left">
                    <select name="DepartIdSearch" id="DepartIdSearch">
                        <option value="0">请选择</option>
                    </select>
                </div>
                <div align="left">
                </div>
            </td>
            <td width="11%" align="center">
                <div align="right">
                    专业 :</div>
            </td>
            <td width="16%" align="center" class="bg3">
                <div align="left">
                    <select name="SubjectIdSearch" id="SubjectIdSearch">
                        <option value="0">请选择</option>
                    </select>
                </div>
                <div align="left">
                </div>
            </td>
            <td align="center" class="box06">
                <div align="right">
                    班别 :</div>
            </td>
            <td align="center" class="bg3">
                <div align="left">
                    <select name="ClassIdSearch" id="ClassIdSearch">
                        <option value="0">请选择</option>
                    </select>
                </div>
            </td>
        </tr>
        <tr class="box06">
            <td height="27" align="center">
                <div align="right">
                    学生学号 :</div>
            </td>
            <td align="left" class="bg3">
                <input name="uidSearch" type="text" size="18" id="uidSearch" />
            </td>
            <td align="center">
                <div align="right">
                    姓名 :</div>
            </td>
            <td colspan="" align="center" class="bg3">
                <div align="left">
                    <input name="nameSearch" type="text" size="18" id="nameSearch" />
                </div>
                <div align="left">
                </div>
            </td>
            <td height="27" align="center">
                <div align="right">
                    年级 :</div>
            </td>
            <td align="left" class="bg3" colspan="">
                <%=Html.DropDownList("YearIdSearch", StudentHelper.GetGradeYear())%>
               
            </td>
            <td class="bg3" colspan="2"> <input type="submit" value="查询" /></td>
        </tr>
        <% } %>
    </table>
<script type="text/javascript">
    $(function () {
        selectLoad("CollegeIdSearch", "Ajax/GetCollege");
        selectChangeLoad("DepartIdSearch", "CollegeIdSearch", "Ajax/GetDepart/");
        selectChangeLoad("SubjectIdSearch", "DepartIdSearch", "Ajax/GetSubject/");
        selectChangeLoad("ClassIdSearch", "SubjectIdSearch", "Ajax/GetClass/");

        selectChangeLoadDef("CollegeIdSearch", "SubjectIdSearch", "Ajax/GetSubject/", "ClassIdSearch", "Ajax/GetClass/");
        selectChangeLoadDef("DepartIdSearch", "ClassIdSearch", "Ajax/GetClass/");
    });

</script>
